<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>

<script type="text/javascript">
	// es5写法
	var username = 'laoda';
	var psw = '12345';
	
	var param = {
		username: username,
		psw: psw
	}
	
	// es6 对象简洁表达
	let username2 = 'laoda';
	let psw2 = '12345';
	
	let param2 = {
		username2,
		psw2
	}
	console.log(param2);
	
	// 对象里,函数的简洁表达
	
	let view = {
		
		init() {
			
		},
		
		bindEvent() {
			
		},
		
		render() {
			
		}
	}
	view.init();
	
</script>